package com.example.demo.service;

import com.example.demo.model.User;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface UserService {

    @Transactional
    int deleteUserById(String id);

    @Transactional
    int insertUser(User record);

    User findUser(User record);

    @Transactional
    int updateUser(User record);
    
    int countUserByName(String name);
    
    List<User> findUserList(User record);

}